## HTTPS server
## upstream server
#upstream portal {
#    ip_hash;
#    server 172.36.112.20 weight=2 max_fails=20 fail_timeout=60s;
#    server 172.36.112.21 weight=1 max_fails=20 fail_timeout=60s;
#    server 172.36.112.24 weight=2 max_fails=20 fail_timeout=60s;
#}
## setting for all server proxy
#large_client_header_buffers 4 16k;
#client_max_body_size 300m;
#client_body_buffer_size 128k;
#proxy_buffer_size 64k;
#proxy_buffers 4 32k;
#proxy_busy_buffers_size 64k;
#proxy_temp_file_write_size 64k;
#proxy_connect_timeout 600;
#proxy_send_timeout 600;
#proxy_read_timeout 600;
#
#
#log_format  gbpx  '|$remote_addr|$time_local|"$request"|$request_time|'
#                  '$status|$body_bytes_sent|"$http_referer"'
#                  '|"$http_user_agent"|$upstream_addr';
#
## server gbpx.gd.gov.cn ssl
#server {
#    listen       443 ssl;
#    server_name  localhost;
#
#    ssl_certificate      certs/gbpx-gd-gov-cn/3673661_gbpx.gd.gov.cn.pem;
#    ssl_certificate_key  certs/gbpx-gd-gov-cn/3673661_gbpx.gd.gov.cn.key;
#
#    ssl_session_cache    shared:SSL:1m;
#    ssl_session_timeout  5m;
#
#    ssl_ciphers  HIGH:!aNULL:!MD5;
#    ssl_prefer_server_ciphers  on;
#    access_log logs/gbpx-access.log gbpx;
#    error_log logs/gbpx-error.log;
#
##    if ($host = 'gbpx.gd.gov.cn') {
##       rewrite ^(.*)$ https://gbpx.gdzz.gov.cn$1;
##}
#    if ($host = '210.76.80.51') {
#        return 403;
#    }
#    location /.well-known/pki-validation {
#       root /usr/local/software/nginx/html/;
#       index fileauth.txt;
#    }
#    location /sz/ {
#        alias /usr/local/software/nginx/html/sz/;
#        index index.html;
#}
#    location /st/ {
#        alias /usr/local/software/nginx/html/st/;
#        index index.html;
#}
#    location / {
#        rewrite ^(.*) http://$host/gdceportal;
#    }
#    location /gdceportal {
#        proxy_set_header   Host             $host;
#        proxy_set_header   X-Real-IP        $remote_addr;
#        proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
#        proxy_pass http://portal;
#    }
#
#    location /SERVER_STATUS {
#        stub_status on;
#        access_log off;
#    }
#    location /test {
#        access_log logs/test-access.log gbpx;
#        return 403;
#    }
#
#}

